﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Popup_Biz.aspx.cs" Inherits="Popup_Popup_Biz" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>제목 없음</title>
    <link href="../CustomCss.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/examples.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .my-grid .x-grid3-scroller
        {
            overflow: scroll;
        }
        
        .item
        {
            font-size: 9pt;
        }
    </style>
    <script type="text/javascript">
        var HideForm = function(){
            parent.Ext.getCmp('Window2').hide();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Store ID="StrGRCODE" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="GRCODE">
                <Fields>
                    <ext:RecordField Name="GRCODE" />
                    <ext:RecordField Name="GRCODENM" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="StrCODE" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="CODE">
                <Fields>
                    <ext:RecordField Name="CODE" />
                    <ext:RecordField Name="CODENM" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Panel ID="Panel1" runat="server" Title="">
        <Content>
            <table>
                <tr>
                    <td class="item">사업자번호(-제외)</td>
                    <td>
                        <ext:TextField ID="tbxBizRegno" runat="server"></ext:TextField>
                    </td>
                    <td class="item">대분류</td>
                    <td>
                        <ext:ComboBox ID="cbxGrCode" runat="server" Width="125" StoreID="StrGRCODE" DisplayField="GRCODENM" ValueField="GRCODE">
                            <DirectEvents>
                                <Select OnEvent="ChangeCombo"></Select>
                            </DirectEvents>
                        </ext:ComboBox>
                    </td>
                    <td class="item">소분류</td>
                    <td>
                        <ext:ComboBox ID="cbxCode" runat="server" Width="125" StoreID="StrCODE" DisplayField="CODENM" ValueField="CODE"></ext:ComboBox>
                    </td>
                </tr>
                <tr>
                    <td class="item">업체명</td>
                    <td>
                        <ext:TextField ID="tbxComp_Nm" runat="server"></ext:TextField>
                    </td>
                    <td class="item">대표자명</td>
                    <td>
                        <ext:TextField ID="tbxRepr_Nm" runat="server"></ext:TextField>
                    </td>
                    <td class="item">대표자주민번호</td>
                    <td>
                        <ext:TextField ID="tbxRepr_ResNo" runat="server"></ext:TextField>
                    </td>
                </tr>
                <tr>
                    <td class="item">전화번호</td>
                    <td>
                        <ext:TextField ID="tbxTel" runat="server"></ext:TextField>
                    </td>
                    <td class="item">팩스번호</td>
                    <td>
                        <ext:TextField ID="tbxFax" runat="server"></ext:TextField>
                    </td>
                    <td class="item">이메일</td>
                    <td>
                        <ext:TextField ID="tbxEmail" runat="server"></ext:TextField>
                    </td>
                </tr>
                <tr>
                    <td class="item">주소</td>
                    <td colspan="4">
                        <ext:TextField ID="tbxAddr" runat="server"></ext:TextField>
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <ext:Button ID="btnSave" runat="server" Text="저장" Icon="Add">
                                        <DirectEvents>
                                            <Click OnEvent="btnSave_Click">
                                                <EventMask ShowMask="true" Msg="저장중입니다..." MinDelay="50" />
                                            </Click>
                                        </DirectEvents>
                                        <Listeners>
                                            <Click Fn="HideForm" />
                                        </Listeners>
                                    </ext:Button>
                                </td>
                                <td>
                                    <ext:Button ID="btnDelete" runat="server" Text="업체삭제" Icon="Delete">
                                        <DirectEvents>
                                            <Click OnEvent="btnDelete_Click">
                                                <EventMask ShowMask="true" Msg="삭제중입니다..." MinDelay="50" />
                                            </Click>
                                        </DirectEvents>
                                        <Listeners>
                                            <Click Fn="HideForm" />
                                        </Listeners>
                                    </ext:Button>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </Content>
    </ext:Panel>
    </form>
</body>
</html>
